<template>
  <div>我是About</div>
</template>

<script>
export default {
  name: "About",
  beforeRouteEnter(to, from, next) {
    // console.log('进入');
    if (to.meta.isAuth) {
      // 判断是否鉴权
      if (localStorage.getItem("school") === "szpt") {
        next();
      } else {
        alert("学校名不对，无权限查看");
      }
    } else {
      next();
    }
  },
  beforeRouteLeave(to, from, next) {
    // console.log(to,from);
    next();
  },
};
</script>

<style>
</style>